<script setup>
import { Location, Document, Setting } from '@element-plus/icons-vue';
import Crud from './components/Crud.vue';
</script>

<template>
  <el-container class="layout-container">
    <el-header height="60px">Header</el-header>
    <el-container>
      <el-aside width="220px">
        <el-menu default-active="2" 
        class="el-menu-vertical-demo"
         @open="handleOpen"
          @close="handleClose"
          router
          >
          <el-menu-item index="1">
            <el-icon><icon-menu /></el-icon>
            <span>Navigator One</span>
          </el-menu-item>

          <el-menu-item index="2">
            <el-icon><icon-menu /></el-icon>
            <span>Navigator Two</span>
          </el-menu-item>

          <el-menu-item index="3" disabled>
            <el-icon>
              <document />
            </el-icon>
            <span>Navigator Three</span>
          </el-menu-item>
          <el-menu-item index="table">
            <el-icon>
              <setting />
            </el-icon>
            <span>Navigator Four</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>

</template>

<style scoped>
.layout-container {
  height: 100%;
}

.el-menu {
  border-right: none;
  height: 100%;
}

.el-menu-vertical {
  height: 100%;
}

.el-header {
  background-color: red;
  height: 100px;
}
</style>
